<template>
  <form action="" ref="form">
    <input type="text" ref="username"> <span>账号</span> <br>
    <input type="password" ref="password"> <span>密码</span>
  </form>
</template>

<script>
export default {
  methods:{
    sonSubmit(){
      console.log(this.$refs.username.value,this.$refs.username.value);
      this.$refs.form.reset()
    }
  }
}
</script>

<style>

</style>
